package com.adminx.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.adminx.dao.MessageDetailDao;
import com.adminx.pojo.MessageDetailPojo;
import com.adminx.util.PageResults;

@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class MessageDetailService {
	
	
	@Autowired
	private MessageDetailDao messageDetailDao;
	
	/**
	 * 分页查找消息
	 */
	public PageResults<MessageDetailPojo> query(Integer pageIndex, Integer pageSize, Long id){
		return this.messageDetailDao.query(pageIndex, pageSize, id);
	}
}
